package home_4_8.chaoshi;

public class Custom {
    private  String name;
    void setName(String name1)
    {
        name=name1;
    }
    String getName()
    {
        return name;
    }
    void shop(Market market, Product product)
    {
        Product p=market.sell(product);
        if(p!=null)
        {
            System.out.println(name+"在"+market.getName()+"买到了"+product.getName);
        }
    }
}
